<li class="event event-item box-item" <%if defined?(obj_id)%>edit-id="<%=obj_id%>"<%end%>>
  <!-- corner -->
  <%= link_to(event) do %>
    <div class="corner-item">
      <div class="corner-item2">
        <div class="corner-color"></div>
        <i class='fa fa-video-camera'></i>
      </div>
      <div class="corner-background"></div>
    </div>

    <div class="container-img">
      <div class="element resource-center">
        <div class="img-box resource-center" id="event-<%=event.id%>">
          <div class="event">
            <i class='fa fa-video-camera'></i>
          </div>
        </div>
      </div>
    </div>
  <% end %>

  <script>
    document.getElementById("event-<%=event.id%>").style.backgroundImage = "url('<%=event_raw_thumbail(event)%>')";
  </script>

  <div class="caption">
    <!--Title -->
    <h6>
      <%= link_to event.title, event %>
    </h6>
    <!--Author -->
    <div class="author"> 
      <span class="by"><%=t('by')%></span>
      <%= link_to event.author.name, event.author.subject %>
    </div>
    <hr>
    <div class="info-bottom">  
      <!--like -->
      <div class="like">  
        <% if event.post_activity%>
          <div class="count"><%=event.post_activity.likes.count.to_s%></div>
          <%= link_like(event.post_activity, :title =>t('excursion.actions.favorite'))%>
        <%else%>
          <div class="count">0</div>
        <%end%>
      </div>
      <!--views -->
      <div class="views">
        <%=event.visit_count.to_s%>
        <i class="fa fa-eye"></i>
      </div>
    </div>
  </div>

</li>
